package cn.exrick.xboot.modules.news.entity;

import cn.exrick.xboot.base.XbootBaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author Exrick
 */
@Data
@Entity
@Table(name = "t_news_images")
@TableName("t_news_images")
@ApiModel(value = "图片上传")
public class NewsImages extends XbootBaseEntity {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "图片路径")
    private String imagePath;
    @ApiModelProperty(value = "原图片名字")
    private String oldName;
    @ApiModelProperty(value = "图片名字")
    private String name;
    @ApiModelProperty(value = "新闻id,新闻表与该表示一对多关系")
    private String  newsId;
}